package com.ldzl.service;

import com.ldzl.pojo.CkStorageArea;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 风止
* @description 针对表【ck_storage_area(库位表)】的数据库操作Service
* @createDate 2025-07-03 09:32:13
*/
public interface CkStorageAreaService extends IService<CkStorageArea> {

    /**
     * 条件分页查询指定库区的库位
     * @param area
     * @return
     */
    List<CkStorageArea> findArea(CkStorageArea area);

    /**
     * 新增/修改 库位
     * @param area
     * @return
     */
    int saveArea(CkStorageArea area);

    /**
     * 删除库区下的库位
     * @param location_id
     * @return
     */
    boolean delete_location_id(Long location_id);

    /**
     * 删除库位
     * @param area_id
     * @return
     */
    boolean deleteArea(Long area_id);

    /**
     * 批量删除库位
     * @param ids
     * @return
     */
    String deleteArea_batch( List<Long> ids);
}
